#pragma once

#include "BaseInc.h"

class GdiplusObject
{
public:
	GdiplusObject();
	~GdiplusObject();
private:
	ulong_x m_ulToken;
};

class GpsFontEx : public GpsFont
{
public:
	GpsFontEx(const FontFormat & format);
	GpsFontEx(const char_16 * szFace, float_32 fSize);
};

class GpsPenEx : public GpsPen
{
public:
	GpsPenEx(IPen * pPen);
	GpsPenEx(uint_32 uiColor, float_32 fWidth);
};

class GpsSolidBrushEx : public GpsSolidBrush
{
public:
	GpsSolidBrushEx(IBrush * pBrush);
	GpsSolidBrushEx(uint_32 uiColor);
};

BOOL SaveImageToFile(HBITMAP hBitmap, LPCWSTR szFileName, ImageSaveFormat format);
BOOL SaveImageToFile(GpsImage & image, LPCWSTR szFileName, ImageSaveFormat format);
GpsImage * ImageFromResource(UINT nID, LPCWSTR szType);

